package com.xiaoxi.visitormode.visitor;

import com.xiaoxi.visitormode.composite.Directory;
import com.xiaoxi.visitormode.composite.File;

/**
 * @Author xiaoxi
 * @ProjectName design_mode
 * @PackageName com.xiaoxi.visitormode.visitor
 * @ClassName Visitor
 * @Description TODO
 * @Date 2023/3/16 19:31
 * @Version 1.0
 */
public interface Visitor {
    void visit(File file);

    void visit(Directory directory);
}
